package map;

public class Student {
	String num;
	String name;
	String classes;
	int age;
	public Student(String num, String name, String classes, int age) {
		super();
		this.num = num;
		this.name = name;
		this.classes = classes;
		this.age = age;
	}
	@Override
	public String toString() {
		return "Student [num=" + num + ", name=" + name + ", classes=" + classes + ", age=" + age + "]";
	}
	public Student(String num, String name) {
		super();
		this.num = num;
		this.name = name;
	}
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Override
	public int hashCode() {
		return num.hashCode();
	}
	@Override
	public boolean equals(Object obj) {
		Student stu=(Student)obj;
		return num.equals(stu.num);
	}
	
}
